package com.station.search.common.util;

import com.google.common.base.Charsets;
import com.google.common.hash.Hashing;

/**
 * @author: JT
 * @date: 2021/9/8
 * @Title:
 */
public class PasswordUtil {

    private PasswordUtil(){}

    public static String encode(String password, String salt) {
        return Hashing.md5().newHasher().putString(
                password + salt, Charsets.UTF_8
        ).hash().toString();
    }
}
